// package: rewords-server-2024
// filename: ding
// author: diogoxiang@gmail.com
// time: 2024/11/20 09:54

package ding

import (
	"github.com/gogf/gf/v2/frame/g"

	"rewords-server-2024/internal/model/entity"
)

// DingAccessTokenReq 钉钉登录
type DingAccessTokenReq struct {
	g.Meta `path:"/ding/get_access_token" method:"get" tags:"钉钉" summary:"通过钉钉扫码登录"`
	Code   string `json:"code" dc:"授权码"`
}

// DingAccessTokenRes 钉钉登录返回 主要用于后台登录
type DingAccessTokenRes struct {
	Token    string               `json:"token"`
	UserInfo *entity.SysAdminUser `json:"userinfo"`
}
